##
## Makefile for my_printf in /home/gueux_g/projet/my_printf
## 
## Made by gueux-g
## Login   <gueux_g@epitech.net>
## 
## Started on  Mon Nov  5 17:50:25 2012 gueux-g
## Last update Tue Jun 11 15:16:10 2013 julien genoud
##

CFLAGS  = -Iinclude/ -Wall
LDFLAGS = lib/libmy.a

RM 	= rm -f

SRC 	= convert_base.c	\
	  my_aff_alpha.c	\
	  my_aff_chiffre.c	\
	  my_aff_comb2.c	\
	  my_aff_comb.c		\
	  my_aff_revalpha.c	\
	  my_evil_str.c		\
	  my_factorielle_it.c	\
	  my_factorielle_rec.c	\
	  my_getnbr_base.c	\
	  my_getnbr.c		\
	  my_isneg.c		\
	  my_power_it.c		\
	  my_power_rec.c	\
	  my_printf.c		\
	  my_printf_funct_02.c	\
	  my_printf_funct.c	\
	  my_putchar.c		\
	  my_putnbr_base.c	\
	  my_put_nbr.c		\
	  my_putstr.c		\
	  my_revstr.c		\
	  my_show_wordtab.c	\
	  my_sort_int_tab.c	\
	  my_strcapitalize.c	\
	  my_strcat.c		\
	  my_strcmp.c		\
	  my_strcpy.c		\
	  my_strdup.c		\
	  my_str_isalpha.c	\
	  my_str_islower.c	\
	  my_str_isnum.c	\
	  my_str_isupper.c	\
	  my_strlcat.c		\
	  my_strlen.c		\
	  my_strlowcase.c	\
	  my_strncat.c		\
	  my_strncmp.c		\
	  my_strncpy.c		\
	  my_strupcase.c	\
	  my_swap.c		\
	  sum_params.c		\
	  xmalloc.c		\

OBJS    = $(SRC:.c=.o)

all :
	cc -c $(SRC)
	ar rc libmy.a $(OBJS)
	mv libmy.a src/
	ranlib src/libmy.a
	cp src/libmy.a ../lib/
##cp include/my.h ../include

clean:
	rm $(OBJS)

fclean: clean
	$(RM) ../lib/libmy.a

re : fclean all
